package com.wedu.modules.dss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("dss_operation_status")
public class OperationStatusEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 设备id
     */
    private Long deviceId;
    /**
     * 灯的状态
     */
    private int lightStatus;
    /**
     * 开灯时间
     */
    @TableField(value = "light_start")
    private Date lightStartTime;
    /**
     * 关灯时间
     */
    @TableField(value = "light_over")
    private Date lightEndTime;
}
